package com.sx.article.biz;

import java.util.List;

import com.sx.article.entity.ArticleAndAttachmentEntity;
import com.sx.article.entity.AttachmentEntity;
import com.sx.feesunit.exception.SXException;

public interface IAttachmentBiz {
	/**
	 *删除数据附件信息 
	 **/
	public boolean deleteAttachment(AttachmentEntity attachemt) throws SXException;
	/**
	 *按照ID编号获取附件信息
	 **/
	public AttachmentEntity findAttachmentInfoById(Integer id) throws SXException;
	/**
	 *新增文章与附件关联信息 
	 **/
	public boolean addAttachmentByArticleId(ArticleAndAttachmentEntity articleattachment) throws SXException;
	/**
	 *删除文章与附件关联信息 
	 **/
	public boolean deleteAttachmentByArticleId(ArticleAndAttachmentEntity articleattachment) throws SXException;
	
	/**
	 * 已经上传的图片文件信息
	 **/
	public String findAttachmentsInfoCount(AttachmentEntity attachemt) throws SXException; 
	/**
	 *  已经上传的图片文件信息
	 **/
	public List<AttachmentEntity> findAttachmentsInfo(AttachmentEntity attachemt) throws SXException; 

	/**
	 * 用户自己上传的图片信息
	 **/
	public String findImageByUserInfoId(AttachmentEntity attachemt) throws SXException; 
	/**
	 *新增附件信息 
	 * @throws SXException 
	 **/
	public Integer addAttachment(AttachmentEntity attachment) throws SXException;
}
